import request from '@/utils/request'

// 查询排列5历史开奖列表
export function listHistory(query) {
    return request({
        url: '/caipiao/historypl5/list',
        method: 'get',
        params: query
    })
}

// 查询排列5历史开奖详细
export function getHistory(qs) {
    return request({
        url: '/caipiao/historypl5/' + qs,
        method: 'get'
    })
}

// 新增排列5历史开奖
export function addHistory(data) {
    return request({
        url: '/caipiao/historypl5',
        method: 'post',
        data: data
    })
}

// 修改排列5历史开奖
export function updateHistory(data) {
    return request({
        url: '/caipiao/historypl5',
        method: 'put',
        data: data
    })
}

// 删除排列5历史开奖
export function delHistory(qs) {
    return request({
        url: '/caipiao/historypl5/' + qs,
        method: 'delete'
    })
}

// 获取历史开奖
export function getAllHistory() {
    return request({
        url: '/caipiao/historypl5/allHistory',
        method: 'post'
    })
}

export function stat1() {
    return request({
        url: '/caipiao/historypl5/stat1',
        method: 'get'
    })
}

export function stat2() {
    return request({
        url: '/caipiao/historypl5/stat2',
        method: 'get'
    })
}
export function getYcKjNum(data) {
    return request({
        url: '/caipiao/historypl5/getYcKjNum',
        method: 'post',
        data
    })
}
